<?php
/**
 * @author Minh Luan
 * @copyright 2012
 */
session_start();
$loginuser = $_SESSION["loginuser"];
if($loginuser[2] == 1 || $loginuser[2] == 2){
    session_unset($loginuser);
    echo "<script>window.location.href='../admin/login.php'</script>";    
}else{
    session_unset($loginuser);
    echo "<script>window.location.href='../pc/login.php'</script>";
}

?>